package com.bbh.plugin.single.privilege.core.repository;

import com.bbh.plugin.single.privilege.core.entity.AccountApp;
import com.bbh.plugin.single.privilege.core.vo.AccountAppVo;
import com.bbh.plugin.single.privilege.core.vo.AppVo;
import org.springframework.boot.config.mybatis.MyBatisRepository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

@MyBatisRepository
public interface AccountAppMapper extends Mapper<AccountApp> {

    /**
     * app列表
     *
     * @param params
     * @return
     */
    List<AppVo> findAccountAppCodeList(Map<String, Object> params);

    /**
     * 通过accountId查询授权系统
     *
     * @param params
     * @return
     */
    List<AccountAppVo> findAccountAppList(Map<String, Object> params);

}